package com.lmf.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * Excel文件内容实体类
 */
@Data
@ToString
public class DemoData {

    //value:设置excel表头名称,index:代表excel表格字段索引，指定该属性是第几列
    @ExcelProperty(value = "学生序号",index = 0)
    private Integer sid;

    //设置excel表头名称
    @ExcelProperty(value = "学生姓名",index = 1)
    private String sname;
}
